#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time : 2025/1/9 9:23
# @Author : ZhengQL

from openai import OpenAI

def AI_Test(text):


    client = OpenAI(api_key="sk-9d95e1a08807492ebc61bd9655a82057", base_url="https://api.deepseek.com")

    response = client.chat.completions.create(
        model="deepseek-chat",
        messages=[
            {"role": "system", "content": "You are a helpful assistant"},
            {"role": "user", "content": text}
        ],
        stream=False
    )
    # 打印AI助手的响应
    print(response.choices[0].message.content)

if __name__ == '__main__':
    text = "接口自动化框架"
    AI_Test(text)